package cn.edu.neusoft.wuguangsheng.market.model;

import cn.edu.neusoft.wuguangsheng.market.bean.MyBean;
import cn.edu.neusoft.wuguangsheng.market.iface.MyIface;
import cn.edu.neusoft.wuguangsheng.market.listener.TListener;
import cn.edu.neusoft.wuguangsheng.market.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

/**
 * Created by little on 2018/4/12.
 */

public class MyModel extends RetrofitBaseModel implements MyIface<MyBean> {
    private AllService allService;
    private Retrofit retrofit;
    public MyModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getMyinfo(String uid, TListener<MyBean> tListener) {
        Call<MyBean> call= allService.getMyinfo(uid);
        callenqueue(call,tListener);
    }
}
